package com.ivvi.autoreco.source;

import android.content.Context;
import android.net.Uri;

import com.ivvi.autoreco.model.LocalImage;

import java.util.HashMap;
import java.util.List;


/**
 * Created by duanxianping on 2017/3/8.
 */

public interface ImageDataSource {

    void loadLocalImages(Context context, LoadImagesCallback callback);

    void loadByUri(Context context, Uri uri, LoadSimgleImageCallback callback);

    interface LoadImagesCallback {
        void loadImages(HashMap<String, List<LocalImage>> images);
    }

    interface LoadSimgleImageCallback {
        void loadSingleImage(LocalImage localImage);
    }
}
